<?php

namespace app\api\model;

use think\Model;

class SupplierReconciliation extends Model
{
    protected $autoWriteTimestamp = true;
    protected $type = ['images' => 'json', 'business_time' => 'timestamp'];

    public function setAccount()
    {
        return $this->belongsTo(SetAccount::class, 'set_account_id');
    }

    public function supplier()
    {
        return $this->belongsTo(UserModel::class, 'supplier_id');
    }

    public function accountType()
    {
        return $this->belongsTo(AccountType::class, 'account_type_id');
    }
}
